/*
* berton
*/
package com.pitop.material.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;

import com.pitop.material.entity.MaterialBrand;

/**
 * 材料品牌 api请求熔断器
 * @author berton
 */
@FeignClient(value = "pps-cloud-demo-provider", fallback = MaterialBrandFeignApiImpl.class)
public interface MaterialBrandFeignApi {
    /**
     * 查询MaterialBrand一个详情信息
     * @param id 
     * @param code 品牌编码
     * @return BeanRet
     */
    @GetMapping(value = "/materialBrand/load")
    MaterialBrand load(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 根据条件id查询MaterialBrand一个详情信息
     *
     * @param id 
     * @return BeanRet
     */
    @GetMapping(value = "/materialBrand/load/id/{id}")
    MaterialBrand loadById(@RequestParam("id") java.lang.Long id);


    /**
     * 根据条件code查询MaterialBrand一个详情信息
     *
     * @param code 品牌编码
     * @return BeanRet
     */
    @GetMapping(value = "/materialBrand/load/code/{code}")
    MaterialBrand loadByCode(@RequestParam("code") java.lang.String code);

    /**
     * 删除MaterialBrand
     *
     * @return BeanRet
     */
    @DeleteMapping("/materialBrand/delete")
    void delete(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 查询MaterialBrand信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/materialBrand/list")
    List<MaterialBrand> list(@RequestBody MaterialBrand materialBrand,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);


    /**
     * 查询MaterialBrand信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/materialBrand/list/by")
    List<MaterialBrand> listByPk(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);




    /**
    * 统计MaterialBrand信息数量根据主键
    *
    * @return 总条数
    */
    @GetMapping(value = "/materialBrand/count/by")
    Integer count(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);

    /**
    * 统计MaterialBrand信息数量
    *
    * @return 总条数
    */
    @PostMapping(value = "/materialBrand/count")
    Integer count(@RequestBody MaterialBrand materialBrand);



    /**
     * 创建MaterialBrand
     *
     * @return BeanRet
     */
    @PostMapping("/materialBrand/build")
    MaterialBrand build(@RequestBody MaterialBrand materialBrand);


    /**
     * 修改MaterialBrand
     *
     * @return BeanRet
     */
    @PutMapping("/materialBrand/modify")
    MaterialBrand modify(@RequestBody MaterialBrand materialBrand);



}
